home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 8
/
008.d81
/
vic tip
< prev
next >
Wrap
Text File
|
2022-08-26
|
1KB
|
59 lines
*** VIC TIP ***
by Jimmy Weiler
Because the VIC chip is a complex
machine, it is a good idea to clear
it before your program starts to work
with it. However, you can't just
poke zeros from 53248 to 53294. Your
screen would go completely blank.
We suggest a subroutine like this to
clear VIC:
50000 V=53248
50010 FOR C1 = 1 TO 16
50020 POKE V + C1, 0
50030 NEXT
50040 POKE V + 17, 27
50050 POKE V + 21, 0
50060 POKE V + 22, 200
50070 POKE V + 23, 0
50080 POKE V + 24, 21
50090 POKE V + 26, 240
50100 FOR C1 = 27 TO 46
50110 POKE V + C1, 0
50120 NEXT
50130 FOR C1 = 2040 to 2047
50140 POKE C1, 13
50150 NEXT
50160 POKE 646, 14
50170 REM ** PUT A RETURN HERE **
50180 REM ** IF YOU USE THIS **
50190 REM ** AS A SUBROUTINE. **
Except for the colors, this
affects VIC just about like pressing
RUN/STOP-RESTORE.
>For those of you who don't like to
type much, this program is on SIDE 2
of LOADSTAR #8. It is saved under
the name of VIC INITIALIZE.
---------- End of Article ------------